package com.ssd.api.product;


import com.ssd.api.product.dto.SkuEntity;
import com.ssd.view.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//@FeignClient(name = "product-service", url = "http://localhost:9004/product-service")
//@FeignClient(name = "product-service")
//@FeignClient(contextId = "product-service", value = "product-service", path = "/sku")
@FeignClient(name = "product-service", url = "http://localhost:9004/product-service/inner/sku")
public interface ProductSkuApi {

        //根据id查询商品
    @GetMapping("/skuById")
    public BaseResponse<SkuEntity> getSkuById1(@RequestParam Long sukId);

    @GetMapping("/skuListByIds")
    public BaseResponse<List<SkuEntity>> getSkuListByIds(@RequestParam List<Long> skuIds);
}
